package com.treehouse.rpgdefender.component;

import org.newdawn.slick.geom.Shape;

import com.artemis.Component;

/**
 * Component class for physical body data.
 * 
 * @author Julian Biermann
 * @version 26.02.2013 09:55:42 v1.0
 * 
 */
public class Body extends Component {

	private Shape shape;

	/**
	 * Initialize the Body with a given shape.
	 * 
	 * @param shape
	 */
	public Body(Shape shape) {
		this.shape = shape;
	}

	/**
	 * @return shape as Shape
	 */
	public Shape getShape() {
		return shape;
	}

	/**
	 * Returns the actual shape type.
	 * 
	 * @return Type as String.
	 */
	public String getShapeType() {
		return this.shape.getClass().getSimpleName();
	}
}
